package com.yuexinduo.loginmodule;


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.yuexinduo.mylibrary.base.BaseMvpActivity;
import com.yuexinduo.mylibrary.constants.PathConstants;

@Route(path = PathConstants.LOGIN_PATH)
public class LoginActivity extends BaseMvpActivity {
    private TextView login;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }
//
//    @Override
//    protected void initImmersionBar() {
//        super.initImmersionBar();
//
//    }

    @Override
    protected int bindLayout() {
        return R.layout.activity_login;
    }

    @Override
    protected Activity getActivity() {
        return this;
    }

    @Override
    protected void initCreate() {

        login = (TextView) findViewById(R.id.login);
        login.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ARouter.getInstance().build(PathConstants.MAIN_ACTIVITY_PATH).navigation();
                finish();
            }
        });

    }
}